<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <link rel="stylesheet" href="css/myequipment.css">
    <script src="js/jsonAjax.js"></script>
    <style>
        body{ padding-top: 0;}
        header{ width: 100%; height: 45px;  background: #f8f8f8; position: static; }
        header nav{height: 100%; vertical-align: middle; display: inline-block;}
        header nav:nth-of-type(1){ width: 20%;text-align: left; padding-left: 10px; box-sizing:border-box;}
        header nav:nth-of-type(2){ width: 60%;}
        header nav:nth-of-type(3){ width: 20%; color: #00cc33 ;font-size: 0.85rem;}
        article{ margin-top: 10px;}
    </style>
</head>
<body>
<div id="app">
    <header>
        <nav @click="goback"><img src="imgs/arrow_left.png"></nav>
        <nav>我的关注</nav>
        <nav ></nav>
    </header>
<section>
    <article>
        <ol>
            <li class="msgconnect"><span>智能药盒M120</span>
                <span>奶奶</span>
            </li>
            <li class="arrow" @click="urlfromto()"><img src="imgs/arrow_right.png"></li>
        </ol>
    </article>
</section>
</div>
<script src="js/jquery.min.js"></script><script src="js/fontzize.js"></script>
<script type="text/javascript">
    Vue.config.debug = true;
    app = new Vue({
        el: "#app",
        data: {
            defaindex:0
        },
        mounted: function () {
            var _this = this;
            //获取外部链接参数
            function GetQueryString(name) {
                var reg = new RegExp("(^|&)" + name + "([^&]*)(&|$)");
                var r = window.location.search.substr(1).match(reg);
                if (r != null)return unescape(r[2]);
                return null;
            }
            var myurl = GetQueryString("device_id");
            if (myurl != null && myurl.toString().length > 1) {
                _this.device_id =Number(GetQueryString("device_id").substr(1));
            }
            else {
                 window.location.href = golinks("");
            }
            //获取外部链接参数
            //19 获取服药人的报告列表√
            jsonAjax('/Home/User/get_patient_records',
                {access_token:_this.token, device_id: _this.device_id, uid: _this.uid}
            ).done(function (data) {
                _this.datalists=data.data
            })
                .fail(function () {
                    console.log("error");
                });


        },
        mounted:function(){

        },
        methods: {
            urlfromto:function () {
                
            },
            goback:function () {
                var _this=this;
                window.location.href=golinks("kitContents/ubddevice.html?details="+_this.device_id+"");
            },
            configuration:function () {


            }

        }

    });

</script>
</body>

</html>

